package com.tao.mapper;

import com.tao.pojo.entity.ProductFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface FlavorMapper {
    void addFlavor(List<ProductFlavor> productFlavors);

    void deleteFlavor(Integer productId);

    @Select("select * from product_flavor where product_id=#{id}")
    List<ProductFlavor> getByProductId(Integer id);
}
